import request from '@/router/axios';
import qs from 'qs';

// 查报废列表 接口
export const findScrapPageQuery = (data) => request({
    url: `/scrap/v1/pageQuery?page=${data.page}&size=${data.size}`,
    method: 'post',
    data: data.scrap,
})

//  新增报废单
export const insertScrap = (data) => request({
    url: '/scrap/v1/update',
    method: 'post',
    data: data,
})

// 详情
export const findById = (data) => request({
    url: '/scrap/v1/findById',
    method: 'post',
    data: qs.stringify(data),
})

// 查询设备类型 tree
export const getDevTypeList = (data) => request({
    url: '/equipmentType/v1/findAllType',
    method: 'post',
    data: qs.stringify(data),
})